<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>打卡 - OA流程审批系统</title>
    <link href="../css/tailwind.min.css" rel="stylesheet">
    <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css" rel="stylesheet">
    <style>
        body {
            background-color: #f5f6fa;
        }
        .clock-in-btn {
            transition: all 0.3s ease;
        }
        .clock-in-btn:active {
            transform: scale(0.95);
        }
    </style>
</head>
<body class="p-4">
    <!-- 顶部导航 -->
    <div class="flex items-center mb-4">
        <i class="fas fa-arrow-left text-gray-600 mr-4"></i>
        <h1 class="text-lg font-semibold">打卡</h1>
    </div>

    <!-- 打卡状态 -->
    <div class="bg-white rounded-lg shadow-sm p-4 mb-4">
        <div class="text-center">
            <div class="text-4xl font-bold text-gray-800 mb-2">09:30</div>
            <p class="text-gray-500">2024年3月21日 星期四</p>
        </div>
        <div class="grid grid-cols-2 gap-4 mt-4">
            <div class="text-center p-3 bg-blue-50 rounded-lg">
                <p class="text-sm text-gray-500">上班打卡</p>
                <p class="font-medium text-blue-500">09:00</p>
            </div>
            <div class="text-center p-3 bg-gray-50 rounded-lg">
                <p class="text-sm text-gray-500">下班打卡</p>
                <p class="font-medium text-gray-400">未打卡</p>
            </div>
        </div>
    </div>

    <!-- 打卡按钮 -->
    <div class="bg-white rounded-lg shadow-sm p-4 mb-4">
        <div class="space-y-4">
            <button class="clock-in-btn w-full py-3 bg-blue-500 text-white rounded-lg flex items-center justify-center">
                <i class="fas fa-map-marker-alt mr-2"></i>
                工作地打卡
            </button>
            <button class="clock-in-btn w-full py-3 bg-green-500 text-white rounded-lg flex items-center justify-center">
                <i class="fas fa-walking mr-2"></i>
                外出打卡
            </button>
            <button class="clock-in-btn w-full py-3 bg-gray-500 text-white rounded-lg flex items-center justify-center">
                <i class="fas fa-history mr-2"></i>
                补卡申请
            </button>
        </div>
    </div>

    <!-- 打卡记录 -->
    <div class="bg-white rounded-lg shadow-sm p-4">
        <h3 class="text-lg font-semibold mb-3">打卡记录</h3>
        <div class="space-y-3">
            <div class="flex items-center justify-between p-3 border-b">
                <div>
                    <p class="font-medium">上班打卡</p>
                    <p class="text-sm text-gray-500">工作地打卡</p>
                </div>
                <div class="text-right">
                    <p class="text-blue-500">09:00</p>
                    <p class="text-sm text-gray-500">正常</p>
                </div>
            </div>
            <div class="flex items-center justify-between p-3 border-b">
                <div>
                    <p class="font-medium">下班打卡</p>
                    <p class="text-sm text-gray-500">工作地打卡</p>
                </div>
                <div class="text-right">
                    <p class="text-red-500">18:30</p>
                    <p class="text-sm text-gray-500">正常</p>
                </div>
            </div>
            <div class="flex items-center justify-between p-3">
                <div>
                    <p class="font-medium">上班打卡</p>
                    <p class="text-sm text-gray-500">外出打卡</p>
                </div>
                <div class="text-right">
                    <p class="text-blue-500">09:15</p>
                    <p class="text-sm text-gray-500">正常</p>
                </div>
            </div>
        </div>
    </div>

    <!-- 补卡申请弹窗 -->
    <div class="fixed inset-0 bg-black bg-opacity-50 hidden">
        <div class="bg-white rounded-lg m-4 p-4">
            <h3 class="text-lg font-semibold mb-4">补卡申请</h3>
            <div class="space-y-4">
                <div>
                    <label class="block text-sm font-medium text-gray-700 mb-1">补卡日期</label>
                    <input type="date" class="w-full p-2 border rounded-lg">
                </div>
                <div>
                    <label class="block text-sm font-medium text-gray-700 mb-1">补卡类型</label>
                    <select class="w-full p-2 border rounded-lg">
                        <option>上班打卡</option>
                        <option>下班打卡</option>
                    </select>
                </div>
                <div>
                    <label class="block text-sm font-medium text-gray-700 mb-1">补卡原因</label>
                    <textarea class="w-full p-2 border rounded-lg" rows="3"></textarea>
                </div>
                <div class="flex space-x-4">
                    <button class="flex-1 py-2 bg-gray-200 text-gray-800 rounded-lg">取消</button>
                    <button class="flex-1 py-2 bg-blue-500 text-white rounded-lg">提交</button>
                </div>
            </div>
        </div>
    </div>
</body>
</html> 